﻿using LJ.EventBus.HornedSerpent.Transport.Abstractions;

namespace LJ.EventBus.HornedSerpent;

public interface IEventBusMessageSerializer
{
    T Deserialize<T>(string json);
    string Serialize(object value);
    byte[] ToBytes(string value);

    string ToJson(byte[] bytes);
    object Deserialize(string json, Type type);
}
